package Jhhekuangjia;

import java.util.ArrayList;
import java.util.Collections;
import java.util.FormatFlagsConversionMismatchException;
import java.util.HashMap;

public class DouDiZhuGame {

    String[] type = {"♦", "♣", "♥", "♠"};
    String[] point = {"3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "2"};
    //保存 健   值
    HashMap<Integer,String>poker=new HashMap<Integer,String>();
    ArrayList<Integer> pooker1 = new ArrayList<Integer>();

    /**
     * 将54张扑克牌初始化并放在对应的集合里面
     */
    public void init(){
        String[] type = {"♦", "♣", "♥", "♠"};
        String[] point = {"3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "2"};
        //保存 健   值
        HashMap<Integer,String>poker=new HashMap<Integer,String>();
        ArrayList<Integer> pooker1 = new ArrayList<Integer>();

        int index =3;
        for (String poin:point){
            for (String typr:type){
                poker.put(index,typr+point);
                pooker1.add(index);
                index++;
            }
        }
        System.out.println(poker);
        System.out.println(pooker1);

        poker.put(0, "大王");
        pooker1.add(0);
        poker.put(1, "小王");
        pooker1.add(1);



    }

    /**
     * 洗牌
     */


    /**
     * 发牌
     */
    public void send(){}

    public static void main(String[] args) {
        Puke puke = new Puke("2","黑桃");
        System.out.println(puke);
    }
}
